export default [
  {
    path: '/home',
    title: '首页',
    component: '@/pages/home'
  },
  {
    path: '/news',
    component: '@/pages/news',
    title:"新闻页",
    routes: [
      {
        path: '/news',
        redirect: '/news/native'
      },
      {
        path: '/news/native',
        wrappers: [
          '@/wrappers/auth'
        ],
        component: '@/pages/news/nativeNews'
      }
    ]
  },

  {
    path: '/about/:id',
    wrappers: [
      '@/wrappers/auth'
    ],
    component: '@/pages/about'
  },
  {
    path: '*',
    component: '@/pages/NotFound'
  },
  {
    path: '/',
    redirect: '/home'
  },
  {
    path: '/login',
    component: 'login'
  }
]